package org.tuoren.official.domain.bo;

import org.tuoren.common.core.validate.AddGroup;
import org.tuoren.common.core.validate.EditGroup;
import org.tuoren.official.domain.Honors;
import org.tuoren.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 荣誉资质业务对象 t_honors
 *
 * @author wl
 * @date 2024-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Honors.class, reverseConvertGenerate = false)
public class HonorsBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属类别
     */
    @NotNull(message = "所属类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long typeId;

    /**
     * 图片Url
     */
    @NotBlank(message = "图片Url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String photoUrl;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;
    /**
     * 显示顺序
     */
    private Integer orderNum;

}
